#include <QCoreApplication>
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    int x = 10,y = 14,z = 7;

    int m = qMax(qMax(x,y),z);
    qDebug() << m << Qt::endl;

    int n = 40;

    qSwap(m,n);

    qDebug() << m << Qt::endl;
    qDebug() << n << Qt::endl;



    return a.exec();
}
